package com.swt;

import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

public class HelloSwt{

	public static void main(String[] args) {
		Display display = Display.getDefault();
		Shell shell = new Shell(display);
		shell.setSize(550, 159);
		
//		shell.setImage(new Image(shell.getDisplay(),"images\\em.gif"));
		shell.setImage(new Image(shell.getDisplay(),"images\\favicon.ico"));
		
		shell.setText(" hello swt");
		shell.open();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch())
				display.sleep();
		}
	}
}
